package com.example.share.service;

import com.example.share.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yjw
 * @since 2022-05-17
 */
@Service
public interface UserService extends IService<User> {
    // TODO: 2022/5/17 查找所有用户 
    public List<User> findAllUser();

    // TODO: 2022/5/17 判断用户是否存在
    public Boolean isExists(String userId);

    // TODO: 2022/5/17 添加用户
    public Boolean addUser(User user);

    // TODO: 2022/5/17 根据id查找用户
    User findUserById(String userId);

}
